home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 26 (Anniversary Edition)
/
Volume 26 [Anniversary Edition] - JOGO DISK .iso
/
DEPOSITO
/
sb_bust.swf
/
scripts
/
__Packages
/
Enemy4Obj.as
< prev
next >
Wrap
Text File
|
2006-07-26
|
2KB
|
63 lines
class Enemy4Obj extends Enemy1Obj
{
function Enemy4Obj(l_RefMov)
{
super(l_RefMov);
this.ComboNow = new Array(35);
this.Combos = new Array();
this.Combos.push(["PunchR",["Wait",20,25]]);
this.Combos.push(["PunchL",["Wait",20,25]]);
this.Combos.push(["PunchR",["Wait",20,25]]);
this.Combos.push(["PunchL",["Wait",20,25]]);
this.Combos.push(["TriPunch",["Wait",30,30]]);
this.Combos.push(["SA",["Wait",20,25]]);
this.MaxHealth = 150;
this.Health = 150;
this.ChanceToParry = 80;
this.MaxNbParry = 3;
this.PunchRDammage = 10;
this.PunchLDammage = 10;
this.TriPunchDammage = 10;
this.SADammage = 25;
}
function StartTriPunch()
{
if(this.RefMov.State._currentframe >= this.RefMov.State._totalframes)
{
this.CanBeHit = true;
this.State = "TriPunchPt1";
}
}
function TriPunchPt1()
{
if(this.RefMov.State._currentframe >= this.RefMov.State._totalframes)
{
this.CheckHit();
this.State = "TriPunchPt2";
}
}
function TriPunchPt2()
{
if(this.RefMov.State._currentframe >= this.RefMov.State._totalframes)
{
this.CheckHit();
this.State = "TriPunchPt3";
}
}
function TriPunchPt3()
{
if(this.RefMov.State._currentframe >= this.RefMov.State._totalframes)
{
this.CheckHit();
this.State = "TriPunchPt4";
}
}
function TriPunchPt4()
{
if(this.RefMov.State._currentframe >= this.RefMov.State._totalframes)
{
this.ReturnIdle();
}
}
}